﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Guest.Master" AutoEventWireup="True"
    CodeBehind="Read.aspx.cs" Inherits="ScrumLite.WebUx.CommitmentsViews.Read" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<% 
    Ajax.Initialize();
    Ajax.RegisterScript("~/Scripts/AjaxAction.js");
    Ajax.RegisterScript("~/Scripts/Commitments.js");
%>
    <h1>
        <%=ViewData.ProjectName%></h1>
    <hr />
    <br />
     <div id="progressBar" class="off">
        <span>Loading please wait...</span>
    </div>
    <form name="commitmentsForm" method="post" action="<%=Url.Action(new { Action="Save", Date=ViewData.Date.ToString("yyyy-MM-dd"), Controller = "Commitments"  }) %>"
    id="commitmentsForm">        
    <div style="border: solid 1px #CCCCCC;" id="commitmentEditContainer">        
        <table width="100%">
            <tr align="left">
                <td style="width: 35%">
                    Title
                </td>
                <td style="width: 35%">
                    Verification
                </td>
                <td style="width: 10%">
                    User
                </td>
                <td style="width: 7%">
                    Spent
                </td>
                <td style="width: 7%">
                    Left
                </td>
                <td rowspan="2">
                    <a href="javascript:void(0);" tabindex="7" onclick="saveCommitment('<%= Url.Action(new { Action="Save", Date=ViewData.Date.ToString("yyyy-MM-dd"), Controller = "Commitments" }) %>'); return false;">
                    Save</a><br />
                    <a href="javascript:void(0);" tabindex="8" onclick="clearCommitment();return false;">
                    Cancel</a><br />
                    <a href="javascript:void(0);" tabindex="9" onclick="deleteCommitment('<%= Url.Action(new { Action="Delete", Date=ViewData.Date.ToString("yyyy-MM-dd"), Controller = "Commitments"  }) %>'); return false;">
                    Delete</a>&nbsp;
                </td>
            </tr>
            <tr align="left">
                <td>
                    <input type="hidden" name="id" id="id" />
                    <input style="width: 95%" name="title" id="title" tabindex="1" />
                </td>
                <td>
                    <input style="width: 95%"  name="verification" id="verification" tabindex="2" />
                </td>
                <td>
                    <input style="width: 95%" name="createdBy" id="createdBy" tabindex="3" value="<%= ViewData.DisplayName %>" />
                </td>
                <td>
                    <input style="width: 95%" name="spent" id="spent" tabindex="4" value="0"/>
                </td>
                <td>
                    <input style="width: 95%"  name="left" id="left" tabindex="5" />
                </td>
                
            </tr>
        </table>
    </div>
    <br />
    <div id="standup">
    <% Html.RenderPartial("Standup", ViewData); %>
    </div>
    </form>
<% Ajax.RenderScripts(); %>
</asp:Content>
